// 自动生成模板PmsSkuImages
package biz

import "github.com/go-kratos/kratos/v2/log"

// pmsSkuImages表 结构体  PmsSkuImages
type PmsSkuImages struct {
	Id         *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                    //id
	SkuId      *int    `json:"skuId" form:"skuId" gorm:"comment:sku_id;column:sku_id;size:19;"`                                 //sku_id
	ImgUrl     *string `json:"imgUrl" form:"imgUrl" gorm:"comment:图片地址;column:img_url;size:255;"`                               //图片地址
	ImgSort    *int    `json:"imgSort" form:"imgSort" gorm:"comment:排序;column:img_sort;size:10;"`                               //排序
	DefaultImg *int    `json:"defaultImg" form:"defaultImg" gorm:"comment:默认图[0 - 不是默认图，1 - 是默认图];column:default_img;size:10;"` //默认图[0 - 不是默认图，1 - 是默认图]
}

// TableName pmsSkuImages表 PmsSkuImages自定义表名 pms_sku_images
func (PmsSkuImages) TableName() string {
	return "pms_sku_images"
}

type PmsSkuImagesRepo interface {
}

type PmsSkuImagesUsecase struct {
	repo PmsSkuImagesRepo
	log  *log.Helper
}

func NewPmsSkuImagesUsecase(repo GreeterRepo, logger log.Logger) *PmsSkuImagesUsecase {
	return &PmsSkuImagesUsecase{repo: repo, log: log.NewHelper(logger)}
}
